<!DOCTYPE html>
<html lang="zh">
<head>
    {include file="Public/header"}
</head>
<body>
<div class="row  border-bottom" id="tab_title">
    <ul class="nav nav-pills" id="side-menu">
        <li role="presentation" class="J_menuItem"><a href="javascript:;">联系方式</a></li>
        <li role="presentation" class=" J_menuItem"><a href="javascript:;">头像设置</a></li>
        <li role="presentation" class=" J_menuItem"><a href="javascript:;">我的年假</a></li>
        <li role="presentation" class=" J_menuItem"><a href="javascript:;">我的流程进度</a></li>
        <li role="presentation" class=" J_menuItem"><a href="javascript:;">个人授权管理</a></li>
        <li role="presentation" class="active  J_menuItem"><a href="javascript:;">个人设置</a></li>
        <li role="presentation" class=" J_menuItem"><a href="javascript:;">我的档案</a></li>
        <li role="presentation" class=" J_menuItem"><a href="javascript:;">银行信息</a></li>
        <li role="presentation" class=" J_menuItem"><a href="javascript:;">我的工资条</a></li>
        <li role="presentation" class=" J_menuItem"><a href="javascript:;">修改密码</a></li>
    </ul>
</div>
<div class="page-heade">
    <h2 class="title_color text-center" style="margin-top:0;">个人设置</h2>
</div>
<form action="">
<table class="table table-bordered">
    <tr>
        <th colspan="2" class="title_color">
            【待办任务提醒设置】
        </th>
    </tr>
    <tr>
        <td style="width:20%;" class="text-right">是否需要每天16:00进行待办任务提醒：</td>
        <td>
            <label for=""><input type="radio"  name="mttx" value="1" {if $mttx==1}checked{/if}>是</label>&nbsp;&nbsp;
            <label for=""><input type="radio" name="mttx" value="0" {if $mttx==0}checked{/if}>否</label>
        </td>
    </tr>
    <tr>
        <td class="text-right">是否提醒新的待办任务：</td>
        <td>
            <label for=""><input type="radio" name="xdb" value="1" {if $xdb==1}checked{/if}>是</label>&nbsp;&nbsp;
            <label for=""><input type="radio" name="xdb" value="0" {if $xdb==0}checked{/if}>否</label>
            <font color="red"> 注：因为网络延迟等原因，网络可能会有延迟，最多不会超过5分钟。</font>
        </td>
    </tr>
</table>
<div class="text-center">
    <input type="button" value="保存" class="btn btn-primary" id="baocun">
</div>
</form>
</body>
{include file="Public/footer"}
<script>
    $(function () {
        $('#baocun').on('click',function () {
            var d = $(this).closest('form').serialize();
            swal({title:"确定提交吗？",showCancelButton:true},function (is) {
                if(is){
                    $.post('{:url("add")}',d,function (data) {
                        if(data.success){
                            swal(data.msg,'','success')
                        }else{
                            swal(data.msg,'','warning')
                        }
                    },'json')
                }
            })
        })
    })
</script>
</html>